@import '~antd/lib/style/themes/default.less';

.treeSelectPlus {
    :global {
        .ant-select-selection--multiple .ant-select-search--inline .ant-select-search__field {
            width: 1px;
            padding: 0;
            margin-right: -1px;
        }
    }
}
.treeSelectPlusCard {
    display: flex;
    border: 1px solid #eee;
    border-radius: 4px;
    .treeContainer {
        flex: 1;
        display: flex;
        flex-direction: column;
        width: 296px;
        padding: 24px;
        border-right: solid 1px #eee;
        height: 424px;
        .treeMain {
            flex: 1;
            margin-top: 12px;
            overflow: auto;
            & > li:first-child {
                & > span:first-child {
                    visibility: hidden;
                    width: 5px;
                }
                & > ul {
                    padding-left: 0;
                }
            }
        }
        :global {
            .ant-tree-node-content-wrapper:hover {
                background-color: transparent !important;
            }
        }
    }
    .previewContainer {
        flex: 1;
        display: flex;
        flex-direction: column;
        padding: 24px;
        height: 424px;
        overflow: auto;
        .checkedTotal {
            margin-bottom: 8px;
            line-height: 32px;
        }
        .checkedList {
            flex: 1;
            overflow: auto;
            margin: 0 -19px;
            .checkedItem {
                height: 40px;
                line-height: 40px;
                user-select: none;
                padding: 0 0 0 19px;
                &:hover {
                    background: #f7f7f7;
                    border-radius: 4px;
                }
                .checkedItemTitle {
                    display: inline-block;
                    width: 200px;
                    text-overflow: ellipsis;
                    white-space: nowrap;
                    overflow: hidden;
                }
                .checkedItemTitleClose {
                    float: right;
                    display: block;
                    width: 40px;
                    height: 40px;
                    line-height: 40px;
                    text-align: center;
                    font-size: 14px;
                    color: #999;
                    cursor: pointer;
                    &:hover {
                        color: @primary-color;
                    }
                }
            }
        }
    }
}
